home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / Winter Shell 1.0d2 / Source / Libraries / #Headers / Precompiled.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-05  |  6.5 KB  |  502 lines  |  [TEXT/KAHL]

  1. /*    93/11/05 aih
  2.     Removed TextEdit.h
  3.     
  4.     93/03/18 Ari Halberstadt (AIH)
  5.     Modified from standard "Mac #includes.c" included with THINK C 5.0.4.
  6.     Both LoMem.h and SysEqu.h are not included, and full prototype
  7.     checking is used. Both Printing.h and PrintTraps.h, though I
  8.     can't remember if they were part of the standard "Mac #includes.c". */
  9.  
  10. #pragma options(check_ptrs,require_protos)
  11.  
  12. /*
  13.  *  Mac #includes.c - source to MacHeaders
  14.  *
  15.  *  To add a header, change its "#if 0" to "#if 1".
  16.  *
  17.  *  To remove a header, change its "#if 1" to "#if 0".
  18.  *
  19.  *  There are some conflicts and order dependencies among the various
  20.  *  headers:
  21.  *
  22.  *    •    <Printing.h> and <PrintTraps.h> cannot both be included.
  23.  *
  24.  *    •    <LoMem.h> and <SysEqu.h> cannot both be included.
  25.  *
  26.  *    •    <asm.h> and <Traps.h>, if both are included, must appear
  27.  *        in that order.  If <Traps.h> is included, traps used in
  28.  *        inline assembly must appear without leading underscores.
  29.  *
  30.  *  If the "Check Pointer Types" option is disabled during the
  31.  *  precompilation process, trap definitions will be stored in
  32.  *  such a way that when a trap is called (in a source file that
  33.  *  #includes the precompiled header), pointer arguments to the
  34.  *  trap will not be matched against the types of corresponding
  35.  *  formal parameters.
  36.  *
  37.  *  This is accomplished by storing "simplified" prototypes for
  38.  *  traps, in which any argument of pointer type is stored as
  39.  *  "void *".  The result closely resembles the treatment of traps
  40.  *  in pre-5.0 versions of THINK C.
  41.  *
  42.  *  (Note that this file is written in such a way that it is immune
  43.  *  to the actual compiler setting of "Check Pointer Types".  Use
  44.  *  the "SIMPLIFY_PROTOTYPES" macro, below, to control whether full
  45.  *  prototypes are retained.)
  46.  *
  47.  */
  48.  
  49. #define _H_MacHeaders
  50.  
  51.  
  52. // ADSP
  53.     #if 0
  54.         #include <ADSP.h>
  55.     #endif
  56.  
  57. // AIFF
  58.     #if 0
  59.         #include <AIFF.h>
  60.     #endif
  61.  
  62. // Aliases
  63.     #if 0
  64.         #ifdef __APPLETALK__
  65.             #include <Aliases.h>
  66.         #else
  67.             #define __APPLETALK__            // suppress unnecessary #include <AppleTalk.h>
  68.             #include <Aliases.h>
  69.             #undef __APPLETALK__
  70.         #endif
  71.     #endif
  72.  
  73. // AppleEvents
  74.     #if 0
  75.         #ifdef __EPPC__
  76.             #include <AppleEvents.h>
  77.         #else
  78.             #define __EPPC__                // suppress unnecessary #include <EPPC.h>
  79.             #include <AppleEvents.h>
  80.             #undef __EPPC__
  81.         #endif
  82.     #endif
  83.  
  84. // AppleTalk
  85.     #if 0
  86.         #include <AppleTalk.h>
  87.     #endif
  88.  
  89. // Balloons
  90.     #if 0
  91.         #ifdef __TRAPS__
  92.             #include <Balloons.h>
  93.         #else
  94.             #define __TRAPS__                // suppress unnecessary #include <Traps.h>
  95.             #define _Pack14 0xA830            // (well, mostly unnecessary...)
  96.             #include <Balloons.h>
  97.             #undef _Pack14
  98.             #undef __TRAPS__
  99.         #endif
  100.     #endif
  101.  
  102. // BDC
  103.     #if 1
  104.         #include <BDC.h>
  105.     #endif
  106.  
  107. // CommResources
  108.     #if 0
  109.         #include <CommResources.h>
  110.     #endif
  111.  
  112. // Connections
  113.     #if 0
  114.         #include <Connections.h>
  115.     #endif
  116.  
  117. // ConnectionTools
  118.     #if 0
  119.         #include <ConnectionTools.h>
  120.     #endif
  121.  
  122. // Controls
  123.     #if 1
  124.         #include <Controls.h>
  125.     #endif
  126.  
  127. // CRMSerialDevices
  128.     #if 0
  129.         #include <CRMSerialDevices.h>
  130.     #endif
  131.  
  132. // CTBUtilities
  133.     #if 0
  134.         #include <CTBUtilities.h>
  135.     #endif
  136.  
  137. // DatabaseAccess
  138.     #if 0
  139.         #include <DatabaseAccess.h>
  140.     #endif
  141.  
  142. // Desk
  143.     #if 1
  144.         #include <Desk.h>
  145.     #endif
  146.  
  147. // DeskBus
  148.     #if 0
  149.         #include <DeskBus.h>
  150.     #endif
  151.  
  152. // Devices
  153.     #if 1
  154.         #include <Devices.h>
  155.     #endif
  156.  
  157. // Dialogs
  158.     #if 1
  159.         #include <Dialogs.h>
  160.     #endif
  161.  
  162. // DiskInit
  163.     #if 1
  164.         #include <DiskInit.h>
  165.     #endif
  166.  
  167. // Disks
  168.     #if 0
  169.         #include <Disks.h>
  170.     #endif
  171.  
  172. // Editions
  173.     #if 0
  174.         #include <Editions.h>
  175.     #endif
  176.  
  177. // ENET
  178.     #if 0
  179.         #include <ENET.h>
  180.     #endif
  181.  
  182. // EPPC
  183.     #if 0
  184.         #include <EPPC.h>
  185.     #endif
  186.  
  187. // Errors
  188.     #if 1
  189.         #include <Errors.h>
  190.     #endif
  191.  
  192. // Events
  193.     #if 1
  194.         #include <Events.h>
  195.     #endif
  196.  
  197. // Files
  198.     #if 1
  199.         #include <Files.h>
  200.     #endif
  201.  
  202. // FileTransfers
  203.     #if 0
  204.         #include <FileTransfers.h>
  205.     #endif
  206.  
  207. // FileTransferTools
  208.     #if 0
  209.         #include <FileTransferTools.h>
  210.     #endif
  211.  
  212. // Finder
  213.     #if 0
  214.         #include <Finder.h>
  215.     #endif
  216.  
  217. // FixMath
  218.     #if 0
  219.         #include <FixMath.h>
  220.     #endif
  221.  
  222. // Folders
  223.     #if 0
  224.         #include <Folders.h>
  225.     #endif
  226.  
  227. // Fonts
  228.     #if 1
  229.         #include <Fonts.h>
  230.     #endif
  231.  
  232. // GestaltEqu
  233.     #if 0
  234.         #include <GestaltEqu.h>
  235.     #endif
  236.  
  237. // Graf3D
  238.     #if 0
  239.         #include <Graf3D.h>
  240.     #endif
  241.  
  242. // HyperXCmd
  243.     #if 0
  244.         #include <HyperXCmd.h>
  245.     #endif
  246.  
  247. // Icons
  248.     #if 0
  249.         #include <Icons.h>
  250.     #endif
  251.  
  252. // Language
  253.     #if 0
  254.         #include <Language.h>
  255.     #endif
  256.  
  257. // Lists
  258.     #if 1
  259.         #include <Lists.h>
  260.     #endif
  261.  
  262. // Memory
  263.     #if 1
  264.         #include <Memory.h>
  265.     #endif
  266.  
  267. // Menus
  268.     #if 1
  269.         #include <Menus.h>
  270.     #endif
  271.  
  272. // MIDI
  273.     #if 0
  274.         #include <MIDI.h>
  275.     #endif
  276.  
  277. // Notification
  278.     #if 1
  279.         #include <Notification.h>
  280.     #endif
  281.  
  282. // OSEvents
  283.     #if 1
  284.         #include <OSEvents.h>
  285.     #endif
  286.  
  287. // OSUtils
  288.     #if 1
  289.         #include <OSUtils.h>
  290.     #endif
  291.  
  292. // Packages
  293.     #if 0
  294.         #include <Packages.h>
  295.     #endif
  296.  
  297. // Palette
  298.     #if 0
  299.         #include <Palette.h>
  300.     #endif
  301.  
  302. // Palettes
  303.     #if 0
  304.         #include <Palettes.h>
  305.     #endif
  306.  
  307. // Picker
  308.     #if 0
  309.         #include <Picker.h>
  310.     #endif
  311.  
  312. // PictUtil
  313.     #if 0
  314.         #include <PictUtil.h>
  315.     #endif
  316.  
  317. // Power
  318.     #if 0
  319.         #include <Power.h>
  320.     #endif
  321.  
  322. // PPCToolBox
  323.     #if 0
  324.         #include <PPCToolBox.h>
  325.     #endif
  326.  
  327. // Printing
  328.     #if 0
  329.         #include <Printing.h>
  330.     #endif
  331.  
  332. // PrintTraps
  333.     #if 0
  334.         #include <PrintTraps.h>
  335.     #endif
  336.  
  337. // Processes
  338.     #if 0
  339.         #include <Processes.h>
  340.     #endif
  341.  
  342. // QDOffscreen
  343.     #if 0
  344.         #include <QDOffscreen.h>
  345.     #endif
  346.  
  347. // Quickdraw
  348.     #if 1
  349.         #include <Quickdraw.h>
  350.     #endif
  351.  
  352. // Resources
  353.     #if 1
  354.         #include <Resources.h>
  355.     #endif
  356.  
  357. // Retrace
  358.     #if 0
  359.         #include <Retrace.h>
  360.     #endif
  361.  
  362. // ROMDefs
  363.     #if 0
  364.         #include <ROMDefs.h>
  365.     #endif
  366.  
  367. // SANE
  368.     #if 0
  369.         #include <SANE.h>
  370.     #endif
  371.  
  372. // Scrap
  373.     #if 1
  374.         #include <Scrap.h>
  375.     #endif
  376.  
  377. // Script
  378.     #if 0
  379.         #include <Script.h>
  380.     #endif
  381.  
  382. // SCSI
  383.     #if 0
  384.         #include <SCSI.h>
  385.     #endif
  386.  
  387. // SegLoad
  388.     #if 1
  389.         #include <SegLoad.h>
  390.     #endif
  391.  
  392. // Serial
  393.     #if 0
  394.         #include <Serial.h>
  395.     #endif
  396.  
  397. // ShutDown
  398.     #if 0
  399.         #include <ShutDown.h>
  400.     #endif
  401.  
  402. // Slots
  403.     #if 0
  404.         #include <Slots.h>
  405.     #endif
  406.  
  407. // Sound
  408.     #if 0
  409.         #include <Sound.h>
  410.     #endif
  411.  
  412. // SoundInput
  413.     #if 0
  414.         #include <SoundInput.h>
  415.     #endif
  416.  
  417. // StandardFile
  418.     #if 1
  419.         #include <StandardFile.h>
  420.     #endif
  421.  
  422. // Start
  423.     #if 0
  424.         #include <Start.h>
  425.     #endif
  426.  
  427. // SysEqu
  428.     #if 0
  429.         #include <SysEqu.h>
  430.     #endif
  431.  
  432. // Terminals
  433.     #if 0
  434.         #include <Terminals.h>
  435.     #endif
  436.  
  437. // TerminalTools
  438.     #if 0
  439.         #include <TerminalTools.h>
  440.     #endif
  441.  
  442. // TextEdit
  443.     #if 0
  444.         #include <TextEdit.h>
  445.     #endif
  446.  
  447. // Timer
  448.     #if 1
  449.         #include <Timer.h>
  450.     #endif
  451.  
  452. // ToolUtils
  453.     #if 1
  454.         #include <ToolUtils.h>
  455.     #endif
  456.  
  457. // Types
  458.     #if 1
  459.         #include <Types.h>
  460.     #endif
  461.  
  462. // Values
  463.     #if 0
  464.         #include <Values.h>
  465.     #endif
  466.  
  467. // Video
  468.     #if 0
  469.         #include <Video.h>
  470.     #endif
  471.  
  472. // Windows
  473.     #if 1
  474.         #include <Windows.h>
  475.     #endif
  476.  
  477. // pascal.h
  478.     #if 1
  479.         #include <pascal.h>
  480.     #endif
  481.  
  482. // asm.h
  483.     #if 1
  484.         #include <asm.h>
  485.     #endif
  486.  
  487. // LoMem
  488.     #if 0
  489.         #include <LoMem.h>
  490.     #endif
  491.  
  492. // THINK
  493.     #if 1
  494.         #include <THINK.h>
  495.     #endif
  496.  
  497. // Traps
  498.     #if 0
  499.         #include <Traps.h>
  500.     #endif
  501.  
  502.